package com.yyy.dm.consumer.controller;

import com.yyy.dm.CommonResponse;
import com.yyy.dm.consumer.service.SchedulerConsumerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/scheduler")
public class SchedulerConsumerController {
    @Resource
    private SchedulerConsumerService schedulerConsumerService;
    //根据商品查场次
    @PostMapping("/desc/getTimePlan")
    public CommonResponse getTimePlan(@RequestBody Map<String,Long> param){
        return schedulerConsumerService.getTimePlan(param.get("itemId"));
    }
}
